package jdklearning;


import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class QueueAndLinkedList {

	public static void main(String[] args) {
		
		LinkedList<Integer> queue = new LinkedList<>();
		queue.add(9);queue.add(8);queue.add(7);
		
		List<Integer> list = new ArrayList<>();
		list.add(12);list.add(11);list.add(10);
		
		queue.addAll(0, list);
		System.out.println(queue);
		queue.removeLast();
		System.out.println(queue);
		queue.poll();
		System.out.println(queue);
	}
}
